package smart.rpc.client;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created By gao_e on 2020/3/10 1:24
 */
public class ClientContainer {

    // 注册中心地址——文件路径+文件名称，用于客户端获取服务提供者服务信息
    public static String registHost;

    // 用于存储k-v  K:接口全类名, V:[ip,端口,serviceFullName]
    // 示例：{"smart.rpc.producer.contract.facade.ISmartRPCTestService":["192.168.0.105","10000","smartRPCTestService"]}
    public static Map<String, String[]> map = new HashMap<>(512);

    // 用于存储，服务端(IP端口) - 客户端netty连接
    // 示例 K:127.0.0.1:10000 , V: netty客户端跟服务端对应长连接
    public static Map<String, StartNettyClientConnectTask> serverMap = new ConcurrentHashMap<>(512);

}